<?php
namespace app\common\model;

use think\Db;
use think\Model;

class Gamelist extends Model
{
	protected $connection = 'db_config_aiqi';

    public static function get_list($where,$order,$page = 11, $query = [])
    {
        $list = self::where($where)
            ->order($order)
            ->paginate(100, false, ['page' => $page,'query' =>$query]);
        return $list;
    }

	public function gameagent()
	{
		return $this->hasMany('gamelist','gid','id');
	}
}